< previous page page_54 next page >

Page 54
Table 1.6 Color Codes in the VGA Palette
VALUECOLORVALUECOLOR
0Black8Gray
1Blue9Light Blue
2Green10Light Green
3Cyan11Light Cyan
4Red12Light Red
5Magenta13Light Magenta
6Yellow14Light Yellow
7White15Bright White

Summary
Theoretically a program can perform any graphic operation using only Visual Basic's methods. If absolutely necessary, a program can use Point and PSet to read and write every pixel in an image individually. While the API functions described in the following chapter provide faster and more powerful graphic operations, they are also much more complicated. To avoid unnecessary complications, always try to build graphic programs using Visual Basic methods first. Only after you are sure Visual Basic's tools are inadequate should you bother with API functions.

 
< previous page page_54 next page >